const mongoose = require("mongoose"); //引入Mongoose
const Schema = mongoose.Schema; //声明Schema
// 历史订单
const cartSchema = new Schema({
  userName: { type: String, unique: true },
  cart: { type: Array }
});

mongoose.model("cart", cartSchema);
